﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/Master.Master" AutoEventWireup="true" CodeBehind="RetrieveSchedule.aspx.cs" Inherits="Assignment_3.Feature___Housekeeping.RetrieveHousekeeping" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <div style="margin-top: 20px; margin-left: 3%; margin-right: 3%">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <h1>Retrieve Schedule</h1>
        <br />
        Retrieve Schedule:
        <asp:TextBox ID="tbxSchedule" runat="server" MaxLength="5"></asp:TextBox><ajaxtoolkit:filteredtextboxextender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="tbxSchedule" FilterType="LowercaseLetters,UppercaseLetters,Numbers"></ajaxtoolkit:filteredtextboxextender>
&nbsp;<asp:Button ID="tbnRetrieve" runat="server" Text="Retrieve" OnClick="tbnRetrieve_Click" />
        &nbsp;<br />
        <asp:Label ID="lblCheck" runat="server" ForeColor="Red" OnDataBinding="tbnRetrieve_Click"></asp:Label>
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxSchedule" ErrorMessage="Please enter a Schedule ID!" ForeColor="Red" OnDataBinding="tbnRetrieve_Click" Display="Dynamic"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxSchedule" Display="Dynamic" ErrorMessage="The Schedule ID is not in the correct format! Please enter an integer!" ForeColor="Red" ValidationExpression="^([0-9]{1,})$"></asp:RegularExpressionValidator>
        <br />


<table id="schedule">
<tr>
<td class="auto-style1">Schedule ID:</td>
<td class="auto-style2">
    <asp:Label ID="lblScheduleID" runat="server"></asp:Label>
    </td>
</tr>
<tr class="alt">
<td class="auto-style3">Staff ID:</td>
<td class="auto-style4">
    <asp:Label ID="lblStaffID" runat="server"></asp:Label>
    </td>
</tr>
<tr>
<td class="auto-style1">Staff Name:</td>
<td class="auto-style2">
    <asp:Label ID="lblName" runat="server"></asp:Label>
    </td>
</tr>
<tr class="alt">
<td class="auto-style1">Duty:</td>
<td class="auto-style2">
    <asp:Label ID="lblDuty" runat="server"></asp:Label>
    </td>
</tr>
<tr>
<td class="auto-style1">Room ID:</td>
<td class="auto-style2">
    <asp:Label ID="lblRoomID" runat="server"></asp:Label>
</td>
</tr>
    <tr>
<td class="auto-style1">Room Status:</td>
<td class="auto-style2">
    <asp:Label ID="lblRoomStatus" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td class="auto-style1">Date of Duty:</td>
<td class="auto-style2">
    <asp:Label ID="lblDateOfDuty" runat="server"></asp:Label>
</td>
</tr>
    <tr>
<td class="auto-style1">Progress:</td>
<td class="auto-style2">
    <asp:Label ID="lblProgress" runat="server"></asp:Label>
</td>
</tr>
</table>
    <br />
        &nbsp;<asp:Button ID="tbnUpdate" runat="server" Text="Update Schedule" OnClick="tbnUpdate_Click" Visible="False" />
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="tbnProgress" runat="server" Text="Update Progress" OnClick="tbnProgress_Click" Visible="False" OnClientClick="return confirm('Are you sure you that the cleaning of the room is completed?')" />
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="tbnDelete" runat="server" OnClick="tbnDelete_Click" Text="Delete Schedule" Visible="False" OnClientClick="return confirm('Are you sure you want to delete the Schedule?')" />
    </div>

</asp:Content>
